package com.hymall.mapper;

import com.hymall.bean.MarketPerms;
import com.hymall.bean.MarketPermsExample;
import com.hymall.bean.vo.PermissionsFirstLayerVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketPermsMapper {
    long countByExample(MarketPermsExample example);

    int deleteByExample(MarketPermsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketPerms record);

    int insertSelective(MarketPerms record);

    List<MarketPerms> selectByExample(MarketPermsExample example);

    MarketPerms selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketPerms record, @Param("example") MarketPermsExample example);

    int updateByExample(@Param("record") MarketPerms record, @Param("example") MarketPermsExample example);

    int updateByPrimaryKeySelective(MarketPerms record);

    int updateByPrimaryKey(MarketPerms record);

    List<PermissionsFirstLayerVo> selectAllPerms();

//    String selectPermissonsByRoleId(Integer roleId);


}